<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:ui="http://java.sun.com/jsf/facelets">
	<body>
	<ui:composition template="../templates/templatesemheader.xhtml">
	 	<ui:define name="content">
		    <div class="container">			  
					<div class="row">
						<div class="col-md-12">
							<div class="home">
								<h:form id="jogadorForm">
									<h:messages id="messages" showDetail="true" styleClass="text-info bg-info :focus"/>
									<rich:panel id="UpdatePanel">			
										<h:outputText value="Nome:" /> <h:inputText  label="Nome" maxlength="50" required="true" value="#{jogadorController.view.jogador.nome}" />
										<br/>	
										<h:outputText value="Idade:" /> <h:inputText label="Idade" maxlength="3" required="true" value="#{jogadorController.view.jogador.idade}" />
										<br/>
										<h:outputText value="Período:" /> <h:inputText label="Periodo" maxlength="1" required="true" value="#{jogadorController.view.jogador.periodo}" />
									</rich:panel>
										<h:commandLink action="buscar" value="Buscar" actionListener="#{jogadorController.buscar()}" />
										<!-- h:commandLink action="atualizar" value="Atualizar" actionListener="#{jogadorController.atualizar()}" /-->
								</h:form>
							</div>
						</div>
					</div>
				</div>
			</ui:define>
		</ui:composition>
</body>
</html>